package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.UserDailyActivityDao;
import com.kly.user.db.entity.UserDailyActivityEntity;
import org.springframework.stereotype.Repository;

/**
* User: linqu
* Date: 2023-10-30
* Time: 20:31:51.335
*/

@Repository
public class UserDailyActivityDaoImpl extends AbstractBaseMapper<UserDailyActivityEntity> implements UserDailyActivityDao {

    @Override
    public Integer getNewUserDailyActiveToday() {
        return (Integer) this.getSqlSession().selectOne(this.getStatement("getNewUserDailyActiveToday"));
    }

    @Override
    public Integer getOldUserDailyActiveToday() {
        return (Integer)this.getSqlSession().selectOne(this.getStatement("getOldUserDailyActiveToday"));
    }

    @Override
    public UserDailyActivityEntity getUserDailyActiveData(Integer today) {
        return this.getSqlSession().selectOne(this.getStatement("getUserDailyActiveData"), today);
    }

}